package ZuoYe4_forXunHuan_0421;

import java.util.Scanner;

public class ZuoYe200422 {

	public static void main(String[] args) {
		// 2:要求输入一个大于等于6的偶数,如果不是,重新输入;
		Scanner input = new Scanner(System.in);
		for (;;) {
			System.out.println("输入一个大于等于6的偶数:");
			int num = input.nextInt();
			if (num >= 6 && num % 2 == 0) {
				System.out.println(num + "是大于等于6的偶数");
				break;
			} else {
				System.out.print("重新");
			}
		}

	}

}
